package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="ZFZB_ZT"
 *     
*/
public class ZfzbZt implements Serializable {

    /** identifier field */
    private String hfztbh;

    /** persistent field */
    private String nd;

    /** nullable persistent field */
    private String hfmc;

    /** persistent field */
    private String dwbh;

    /** nullable persistent field */
    private String sjzt;

    /** nullable persistent field */
    private String cjsj;

    /** nullable persistent field */
    private String xdsj;

    /** nullable persistent field */
    private String xjzt;

    /** nullable persistent field */
    private String qrsj;

    /** nullable persistent field */
    private String sbsj;

    /** nullable persistent field */
    private String sjhfztbh;

    /** nullable persistent field */
    private String bhyy;

    /** nullable persistent field */
    private String bz;

    /** nullable persistent field */
    private String zjhfztbh;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;

    /** full constructor */
    public ZfzbZt(String hfztbh, String nd, String hfmc, String dwbh, String sjzt, String cjsj, String xdsj, String xjzt, String qrsj, String sbsj, String sjhfztbh, String bhyy, String bz, String zjhfztbh, String zt1, String zt2) {
        this.hfztbh = hfztbh;
        this.nd = nd;
        this.hfmc = hfmc;
        this.dwbh = dwbh;
        this.sjzt = sjzt;
        this.cjsj = cjsj;
        this.xdsj = xdsj;
        this.xjzt = xjzt;
        this.qrsj = qrsj;
        this.sbsj = sbsj;
        this.sjhfztbh = sjhfztbh;
        this.bhyy = bhyy;
        this.bz = bz;
        this.zjhfztbh = zjhfztbh;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public ZfzbZt() {
    }

    /** minimal constructor */
    public ZfzbZt(String hfztbh, String nd, String dwbh) {
        this.hfztbh = hfztbh;
        this.nd = nd;
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="HFZTBH"
     *         
     */
    public String getHfztbh() {
        return this.hfztbh;
    }

    public void setHfztbh(String hfztbh) {
        this.hfztbh = hfztbh;
    }

    /** 
     *            @hibernate.property
     *             column="ND"
     *             length="4"
     *             not-null="true"
     *         
     */
    public String getNd() {
        return this.nd;
    }

    public void setNd(String nd) {
        this.nd = nd;
    }

    /** 
     *            @hibernate.property
     *             column="HFMC"
     *             length="50"
     *         
     */
    public String getHfmc() {
        return this.hfmc;
    }

    public void setHfmc(String hfmc) {
        this.hfmc = hfmc;
    }

    /** 
     *            @hibernate.property
     *             column="DWBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getDwbh() {
        return this.dwbh;
    }

    public void setDwbh(String dwbh) {
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.property
     *             column="SJZT"
     *             length="2"
     *         
     */
    public String getSjzt() {
        return this.sjzt;
    }

    public void setSjzt(String sjzt) {
        this.sjzt = sjzt;
    }

    /** 
     *            @hibernate.property
     *             column="CJSJ"
     *             length="14"
     *         
     */
    public String getCjsj() {
        return this.cjsj;
    }

    public void setCjsj(String cjsj) {
        this.cjsj = cjsj;
    }

    /** 
     *            @hibernate.property
     *             column="XDSJ"
     *             length="14"
     *         
     */
    public String getXdsj() {
        return this.xdsj;
    }

    public void setXdsj(String xdsj) {
        this.xdsj = xdsj;
    }

    /** 
     *            @hibernate.property
     *             column="XJZT"
     *             length="2"
     *         
     */
    public String getXjzt() {
        return this.xjzt;
    }

    public void setXjzt(String xjzt) {
        this.xjzt = xjzt;
    }

    /** 
     *            @hibernate.property
     *             column="QRSJ"
     *             length="14"
     *         
     */
    public String getQrsj() {
        return this.qrsj;
    }

    public void setQrsj(String qrsj) {
        this.qrsj = qrsj;
    }

    /** 
     *            @hibernate.property
     *             column="SBSJ"
     *             length="14"
     *         
     */
    public String getSbsj() {
        return this.sbsj;
    }

    public void setSbsj(String sbsj) {
        this.sbsj = sbsj;
    }

    /** 
     *            @hibernate.property
     *             column="SJHFZTBH"
     *             length="50"
     *         
     */
    public String getSjhfztbh() {
        return this.sjhfztbh;
    }

    public void setSjhfztbh(String sjhfztbh) {
        this.sjhfztbh = sjhfztbh;
    }

    /** 
     *            @hibernate.property
     *             column="BHYY"
     *             length="400"
     *         
     */
    public String getBhyy() {
        return this.bhyy;
    }

    public void setBhyy(String bhyy) {
        this.bhyy = bhyy;
    }

    /** 
     *            @hibernate.property
     *             column="BZ"
     *             length="400"
     *         
     */
    public String getBz() {
        return this.bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    /** 
     *            @hibernate.property
     *             column="ZJHFZTBH"
     *             length="50"
     *         
     */
    public String getZjhfztbh() {
        return this.zjhfztbh;
    }

    public void setZjhfztbh(String zjhfztbh) {
        this.zjhfztbh = zjhfztbh;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("hfztbh", getHfztbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof ZfzbZt) ) return false;
        ZfzbZt castOther = (ZfzbZt) other;
        return new EqualsBuilder()
            .append(this.getHfztbh(), castOther.getHfztbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getHfztbh())
            .toHashCode();
    }

}
